package game.model.converter;

import common.model.po.GMilestoneUnlock;
import game.model.vo.MilestoneUnlockVo;

/**
 * 描述
 *
 * @author 米泽鹏
 * @since 2024-1-20 上午 2:03
 */
public class GMilestoneUnlockConverter {

	public static MilestoneUnlockVo poToVo(GMilestoneUnlock gMilestoneUnlock) {
		if (gMilestoneUnlock == null) {
			return null;
		}
		MilestoneUnlockVo milestoneUnlockVo = new MilestoneUnlockVo();
		milestoneUnlockVo.setMilestoneId(gMilestoneUnlock.getMilestoneId());
		milestoneUnlockVo.setType(gMilestoneUnlock.getType());
		milestoneUnlockVo.setElementId(gMilestoneUnlock.getElementId());
		milestoneUnlockVo.setContent(gMilestoneUnlock.getContent());
		milestoneUnlockVo.setId(gMilestoneUnlock.getId());
		milestoneUnlockVo.setOperator(gMilestoneUnlock.getOperator());
		milestoneUnlockVo.setCreateTime(gMilestoneUnlock.getCreateTime());
		milestoneUnlockVo.setUpdateTime(gMilestoneUnlock.getUpdateTime());
		return milestoneUnlockVo;
	}

}
